<template name="tpl_37">
  <view class="floor-layout tpl-37">
    <view class="layout-main">
        <view class="goods-list-view" >
            <view class="goods-list u-flex" v-for="(block, index) in item.blockList" :key="index" :class="[(index + 1) % 2 == 0 ? 'list-b' : '', 'goods-list' ]" @click="blockHref(block)">
                <goods-cell-search
                    v-if="block.block_value"
                    :doublerowShow="true"
                    :goodsName="block.block_value.goods_name"
                    :goodsImg="block.block_value.goods_image"
                    :goodsPrice="block.block_value.goods_price"
                    :goodsBuyCount="-1"
                    :goodsCommentNum="-1"
                ></goods-cell-search>
            </view>
        </view>
    </view>
  </view>
</template>

<script>
    import mixin from '@/common/mixin.js'
	export default {
        mixins: [mixin],
        props:{
            item: Object
        }
	}
</script>
<style lang="scss">
    .goods-list-view {
        border-radius: 15rpx 15rpx 0rpx 0rpx;
        .goods-list {
            width: 48%;
            float: left;
            background: #FFFFFF;
            overflow: hidden;
            margin: 10rpx 0;
            border-radius: 20rpx;
            &.list-b {
                margin-left: 24rpx;
            }
        }
    }
</style>